package com.brayan.webapp.model.realestate;

import java.util.List;

import org.joda.time.Interval;

public class EnrichedInterval {

	private Interval displayInterval;
	private List<Interval> reservationIntervals;
	private SimpleEnrichedInterval simpleEnrInt;

	public Interval getDisplayInterval() {
		return displayInterval;
	}

	public void setDisplayInterval(Interval displayInterval) {
		this.displayInterval = displayInterval;
	}

	public List<Interval> getReservationIntervals() {
		return reservationIntervals;
	}

	public void setReservationIntervals(List<Interval> reservationIntervals) {
		this.reservationIntervals = reservationIntervals;
	}
	
	public SimpleEnrichedInterval getSimpleEnrichedInterval(){
		// Have the simple JSON intervall created.
		SimpleEnrichedInterval simplEnrInt = new SimpleEnrichedInterval(displayInterval);
		// Enrich the Interval with Reservations, if needed.
		// TODO add reservation
		return simplEnrInt;
	}

}
